@charset "utf-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}
.web {
  min-width: 1024px;
}
.clearfix {
  *zoom: 1; /*ie6清除浮动的方式 *号只有IE6-IE7执行，其他浏览器不执行*/
  &::after {
    display: block;
    content: "";
    clear: both;
    height: 0;
    visibility: hidden;
  }
}
// 自定义
$width: 1000px;
// 头部
header {
  .h_top {
    background-color: #212121;
    .h_top_box {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: $width;
      height: 40px;
      margin: 0 auto;
      .h_icons {
        img {
          vertical-align: middle;
          margin-right: 10px;
        }
      }
      p {
        color: #bbbbbb;
        font-size: 12px;
      }
    }
  }
  .h_nav {
    width: $width;
    margin: 0 auto;
    padding: 5px 0 0;
    display: flex;
    align-items: flex-end;
    .logo {
      width: 60px;
      height: 100px;
      margin: 0 100px 5px;
      img {
        width: 100%;
      }
    }
    .nav {
      display: flex;
      li {
        position: relative;
        margin-right: 60px;
        padding: 5px 10px;
        cursor: pointer;
        & > a {
          font-size: 14px;
          color: #000;
        }
        .nav_1 {
          display: none;
          position: absolute;
          left: 50%;
          top: 31px;
          transform: translateX(-50%);
          color: #ffecec;
          font-size: 12px;
          background-color: rgba(0, 0, 0, 0.3);
          z-index: 99;
          text-align: center;
          .nav_2 {
            position: relative;
            line-height: 2.5;
            width: 156px;
            &::after {
              display: block;
              content: "";
              position: absolute;
              top: 40%;
              right: 10px;
              width: 9px;
              height: 7px;
              background: url(../img/right_arr.png);
            }
            .nav_3 {
              display: none;
              position: absolute;
              top: 0;
              right: 0;
              transform: translateX(100%);
              a {
                display: block;
                color: #ffecec;
                padding: 0 20px;
                background-color: rgba(0, 0, 0, 0.3);
                line-height: 2.5;
                &:hover {
                  background-color: rgba(0, 0, 0, 0.6);
                }
              }
            }
            &:hover {
              background-color: rgba(0, 0, 0, 0.6);
              .nav_3 {
                display: block;
              }
            }
          }
        }
        &:hover {
          background-color: #d2d2d2;
          .nav_1 {
            display: block;
          }
        }
      }
      .active {
        background-color: #d2d2d2;
      }
    }
  }
  .carousel {
    position: relative;
    padding-top: 34.6%;
    overflow: hidden;
    width: 100%;
    .caro_img {
      position: absolute;
      left: 0;
      top: 0;
      white-space: nowrap;
      font-size: 0;
      li {
        display: inline-block;
        width: 100%;
        img {
          display: block;
          width: 100%;
        }
      }
    }
    .arrow {
      position: absolute;
      top: 0;
      width: 10%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 42px;
      color: #fff;
      cursor: pointer;
      transition: all .3s;
    }
    .left_arr {
      left: 0;
      background: linear-gradient(to right,rgba(0,0,0,.7),transparent);
      transform: translateX(-100%);
    }
    .right_arr {
      right: 0;
      background: linear-gradient(to left,rgba(0,0,0,.7),transparent);
      transform: translateX(100%);
    }
    &:hover .arrow {
      transform: translateX(0);
    }
    ol {
      display: flex;
      position: absolute;
      left: 50%;
      bottom: 21px;
      transform: translateX(-50%);
      li {
        width: 44px;
        height: 7px;
        background-color: #b4b3b3;
        margin: 0 3px;
        cursor: pointer;
      }
      .active {
        background-color: #fff;
      }
    }
  }
}
// 尾部
footer {
  background-color: #000;
  color: #dcdcdc;
  width: $width;
  margin: 59px auto 0;
  padding: 41px 80px 22px;
  .footer_top {
    display: flex;
    // justify-content: space-around;
    dl {
      margin: 0 40px;
      dt {
        width: 200px;
        border-bottom: 1px solid #dbdbea;
        padding-bottom: 6px;
        font-size: 14px;
      }
      dd {
        line-height: 2.5;
        font-size: 12px;
      }
    }
  }
  .footer_bott {
    display: flex;
    margin-top: 40px;
    font-size: 14px;
    justify-content: space-between;
  }
}
